// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.ButlerTrainDao;
import com.liuxinlong.modules.entity.ButlerTrain;
import com.liuxinlong.modules.mapper.ButlerTrainMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * ButlerTrainDaoImpl
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年10月24日
 */
@Service
public class ButlerTrainDaoImpl extends ServiceImpl<ButlerTrainMapper, ButlerTrain> implements ButlerTrainDao {

    @Override
    public List<ButlerTrain> pageTrainInfo(Map<String, Object> queryParam) {
        return baseMapper.pageTrainInfo(queryParam);
    }

    @Override
    public int getTrainInfoCount(Map<String, Object> queryParam) {
        return baseMapper.getTrainInfoCount(queryParam);
    }

    @Override
    public List<ButlerTrain> queryTrainListByParam(Map<String, Object> queryParam) {
        return baseMapper.queryTrainListByParam(queryParam);
    }

    @Override
    public Map<String, Map<String, String>> getAllTrainMap() {
        return baseMapper.getAllTrainMap();
    }

    @Override
    public List<ButlerTrain> queryAllTrainList() {
        return baseMapper.queryAllTrainList();
    }

    @Override
    public ButlerTrain selectByIndex(int businessType, int subType, int showIndex) {
        return baseMapper.selectByIndex(businessType, subType, showIndex);
    }

    @Override
    public Map<String, Map<String, String>> getTrainMap(List<String> idList) {
        return baseMapper.getTrainMap(idList);
    }

    @Override
    public  Map<String, Map<String, Object>> getCountByMonth(Map<String, Object> queryParam) {
        return baseMapper.getCountByMonth(queryParam);
    }
}
